﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lp_PackageSet.aspx.cs" Inherits="ZLDC.Estate.Quantify.Package.lp_PackageSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>新增套餐</title>
     <script src="../flexigrid/jquery.js" type="text/javascript"></script>

    <link href="../../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../js/lp_Basis.js" type="text/javascript"></script>

    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .divcenter{text-align:center;width:50%;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <asp:Panel ID="Panel2" runat="server" Width="95%">
            <asp:HiddenField ID="hiduserid" runat="server" />
            <div style="color: Red">
                套餐名称:<asp:TextBox ID="txtName" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../lp_Package.aspx">返回</a></div>
            <table id="table2" width="700px" border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>
                <thead>
                    <tr>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            类别
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            选择
                        </th>
                        <th align="center" width="80" bgcolor='d3eaef' class='STYLE6'>
                            工作项名称
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            分值
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            最高分
                        </th>
                        <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                            完成数量
                        </th>
                        <th align="center" width="60px" bgcolor='d3eaef' class='STYLE6'>
                            单项总分
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RpList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class='STYLE10'>
                                    <%# Eval("Other1")%>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ckb" runat="server"  Enabled='<%#  ZLDC.Topo.BLL.Estate.lp_Package.GetEnabled(Eval("Choosesj").ToString()) %>' Checked='<%#  ZLDC.Topo.BLL.Estate.lp_Package.Gettr(Eval("Choosesj").ToString()) %>' />
                                    <asp:HiddenField ID="hidid" runat="server" Value='<%# Eval("BasisCode") %>' />
                                    <asp:HiddenField ID="TypeName" runat="server" Value='<%# Eval("Other1") %>' />
                                    <asp:HiddenField ID="hidUnit" runat="server" Value='<%# Eval("Unit") %>' />
                                    <asp:HiddenField ID="hidName" runat="server" Value='<%# Eval("BasisName") %>' />
                                    <asp:HiddenField ID="hidRemark" runat="server" Value='<%# Eval("Remark") %>' />
                                    <asp:HiddenField ID="hidQuantity" runat="server" Value='<%# Eval("Quantity") %>' />
                                    <asp:HiddenField ID="hidPoint" runat="server" Value='<%# Eval("Point") %>' />
                                    <asp:HiddenField ID="hidCompleteNum" runat="server" Value='<%# Eval("CompleteNum") %>' />
                                    <asp:HiddenField ID="hidPackageID" runat="server" Value='<%# Eval("PackageID") %>' />
                                </td>
                                <td class='STYLE10'>
                                    <%# Eval("BasisName")%>
                                    <%# Eval("CompleteNum") %>
                                    <%# Eval("Unit") %>
                                </td>
                                <td class='STYLE10'>
                                    <%# Eval("Point")%>
                                </td>
                                <td class='STYLE10'>
                                    <asp:TextBox ID="txtScore" Width="50px" onkeydown="myKeyDown()" Enabled="false" runat="server"
                                        Text='<%# Eval("Score") %>'></asp:TextBox>
                                </td>
                                <td class='STYLE10'>
                                    <asp:TextBox ID="txtQuantity" Width="50px"  runat="server" 
                                        onkeyup='Knum(this,"table2",2)' Text='<%# Eval("Quantity") %>'></asp:TextBox>
                                         
                                </td>
                                <td class='STYLE10' style="text-align: center">
                                    <asp:TextBox ID="txtSinglePoint" Width="95%" onkeydown="myKeyDown()" BorderStyle="None"
                                        Text='<%# GetHeiht( Eval("CompleteNum"),Eval("Point"),Eval("Score"),Eval("Quantity"),Eval("Choosesj")) %>'
                                        runat="server"></asp:TextBox>
                                </td>
                                <td class='STYLE10' style="display: none">
                                    <%# Eval("CompleteNum") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td>
                            总分:
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <input id="txtallnum2" style="width: 50px; color: Red" value="0" runat="server" name="txtallnum2"
                                type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            最低总分:
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <input id="txtTotal2" style="width: 50px; color: Red" value="0" runat="server" name="txtTotal2"
                                readonly="readonly" type="text" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </asp:Panel>
    </div> <div class="divcenter"><asp:Button ID="btnAdd" runat="server" Text="保存"  OnClientClick="return YZname()"
            CssClass="button1" onclick="btnAdd_Click" /></div>
    
    <script src="../js/lp_PackageSet.js" type="text/javascript"></script>
    
    </form>
</body>
</html>
